#ifndef _CONTEXT_H_
#define _CONTEXT_H_

#include "state.h"

class State;

class Context
{
public:
	Context();
	~Context();

public:
	void SetState(State* state);
	State* GetState1();
	State* GetState2();

	// 行为委托
	void handle1();
	void handle2();

private:
	State* current_state_;
	State* state1_;
	State* state2_;
};

#endif // _CONTEXT_H_